﻿requirejs.config({
	urlArgs: "t=" + (new Date()).getTime(),
	baseUrl: (window.CTX || '')+'/resources',
	waitSeconds: 0,// 0 永不超时
	paths: {
		bs:"base/js/base.min",
		underscore: 'libs/underscore/underscore-min',
		backbone: 'libs/backbone/backbone-min', 
		jquery: "libs/jquery/jquery-1.10.2.min",
		jqueryui: "libs/jqueryui/js/jquery-ui-1.10.3.custom.min",
		validate: "libs/jquery-validation/1.11.1/jquery.validate.min",
		ztree:"libs/jquery-ztree/js/jquery.ztree.all-3.5.min",
		md5:"libs/md5/md5.min",
		dragsort:"libs/dragsort/jquery.dragsort-0.5.1.min",/**可拖拽组件**/
		bootstrap3: "libs/bootstrap3/js/bootstrap.min",
		validate: "libs/jquery-validation/1.11.1/messages_bs_zh",
		_validate_core:"libs/jquery-validation/1.11.1/jquery.validate.min",
		ztree:"libs/jquery-ztree/js/jquery.ztree.all-3.5.min",
		fastclick: "libs/fastclick/fastclick.min",
		imgareaselect: "libs/jquery.imgareaselect-0.9.10/scripts/jquery.imgareaselect.min",
		alertify: "libs/alertify.js-0.3.11/lib/alertify.min",
		ajaxfileupload: "libs/ajaxfileupload/ajaxfileupload.min",
		moment:"libs/assets/js/vendor/other/momentjs/moment-with-locales.min",
		datetimepicker:"libs/assets/js/vendor/other/datepicker/bootstrap-datetimepicker.min",
		parsley:"libs/assets/js/vendor/other/parsley/i18n/zh_cn",
		
		assets_mmenu:"libs/assets/js/vendor/core/mmenu/js/jquery.mmenu.min",
		assets_nicescroll:"libs/assets/js/vendor/core/nicescroll/jquery.nicescroll.min",
		assets_sparkline:"libs/assets/js/vendor/core/sparkline/jquery.sparkline.min",
		
		assets_minimal:"libs/assets/js/minimal.min",
		
		uichoose: "libs/uichoose/tree",
		plupload:"libs/plupload/plupload.full.min",
		qiniu:"libs/qiniu/qiniu.min",
		avatar:"modules/avatar/js/avatar",
		
		pinyin:"libs/pinyin/pinyin",
		
		chosen_jquery:"libs/assets/js/vendor/other/chosen/chosen.jquery.min"
		
	},
	map: {
	  '*': {
	    'css': 'libs/require-css/css'// or whatever the path to require-css is
	  }
	}, 
	shim: {
		'jquery': {
			deps: ['libs/iefix'],
			exports: 'jQuery'
		},  
		'validate': {
			deps: ['jquery','_validate_core','css!libs/jquery-validation/1.11.1/validate'],
			exports: 'jQuery'
		},
		'_validate_core': {
			deps: ['jquery']
		},
		'md5':{
			exports:'MD5'
		},
		'backbone': {
			deps: ['underscore', 'jquery'],
			exports: 'Backbone'
		},
		'bootstrap3':{
			deps: ['jquery'],
			exports: 'jQuery'
		},
		'bs': {
			deps: ['css!base/css/base.min','jquery'],
			exports: 'jQuery'
		},
		'ztree':{
			deps:['css!libs/jquery-ztree/css/zTreeStyle/zTreeStyle','jquery'],
			exports: 'jQuery'
		},
		'dragsort':{
			deps:['jquery'],
			exports: 'jQuery'
		},
		'underscore': {
			exports: '_'
		},
		'ratchet': {
			deps: ['css!libs/ratchet/dist/ratchet','css!libs/ratchet/dist/ios-theme']
        },
		'fastclick': {
            exports: 'FastClick'
        },
        'imgareaselect':{
        	deps: ['jquery',"css!libs/jquery.imgareaselect-0.9.10/css/imgareaselect-default"]
        },
        'uichoose':{
        	deps: ['jquery',"css!libs/uichoose/tree"]
        },
        'plupload':{
        	deps: ['jquery'],
        	exports: 'plupload'
        },
        'qiniu':{
        	deps: ['plupload'],
        	exports: 'qiniu'
        },
        'avatar':{
        	deps: ['qiniu'],
        	exports: 'avatar'
        },
        'alertify':{
        	deps: ['jquery',"css!libs/alertify.js-0.3.11/themes/alertify.core","css!libs/alertify.js-0.3.11/themes/alertify.default"],
			exports: 'alertify'
        },
		'moment':{
			exports:'moment'
		},
        'datetimepicker': {
        	deps: ['css!libs/assets/js/vendor/other/datepicker/css/bootstrap-datetimepicker', 'jquery', 'moment'],
        	exports: 'jQuery'
        },
		'parsley':{
        	deps:['jquery','libs/assets/js/vendor/other/parsley/parsley.min','css!libs/assets/js/vendor/other/parsley/css/parsley'],
			exports:'Parsley'
		},
        'assets_mmenu': {
        	deps:['jquery'],
			exports: 'jQuery'
        },
        'assets_minimal':{
        	deps:['jquery','bootstrap3','assets_mmenu','assets_nicescroll','assets_sparkline'],
			exports: 'jQuery'
        },        
        'chosen_jquery':{
        	deps:['jquery','css!libs/assets/js/vendor/other/chosen/css/chosen.min','css!libs/assets/js/vendor/other/chosen/css/chosen-bootstrap'],
			exports: 'jQuery'
        },
        "jqueryui": {
			deps: ['jquery','css!libs/jqueryui/css/redmond/jquery-ui-1.10.3.custom.min'],
			exports: 'jquery'
		}
	}
});

